﻿<Grid x:Class="TabletopWidgetTestApp.DemoMenu"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             xmlns:surfnet ="clr-namespace:TableTopWidgets;assembly=TableTopWidgets" d:DesignHeight="335" d:DesignWidth="519">

    <Grid.Resources>
        <Style x:Key="Disabled" TargetType="{x:Type surfnet:RadialButton}">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="Background" Value="DarkGray"/>
            <Setter Property="IsEnabled" Value="False"/>
        </Style>
        <Style x:Key="AddDefault" TargetType="{x:Type surfnet:RadialButton}">
            <Setter Property="Foreground" Value="Black"/>
            <Setter Property="Background" Value="Green"/>
            <Setter Property="IsEnabled" Value="True"/>
        </Style>
        <Style x:Key="RemoveDefault" TargetType="{x:Type surfnet:RadialButton}">
            <Setter Property="Foreground" Value="Black"/>
            <Setter Property="Background" Value="Red"/>
            <Setter Property="IsEnabled" Value="True"/>
        </Style>
        <Style x:Key="Invisible" TargetType="{x:Type surfnet:RadialButton}">
            <Setter Property="Visibility" Value="Hidden"/>
            <Setter Property="IsEnabled" Value="False"/>
        </Style>
        <Style x:Key="Visible" TargetType="{x:Type surfnet:RadialButton}">
            <Setter Property="Visibility" Value="Visible"/>
            <Setter Property="IsEnabled" Value="True"/>
        </Style>
    </Grid.Resources>

    <surfnet:RadialMenu PieSize="140" Orientation="0" MinRadius="50" MaxRadius="100">
        <surfnet:RadialButton x:Name="Button3A" Thickness="0" Click="RevealImage1">
            <Image Source="/Images/Hydrangeas.jpg" Margin="0,-13,0,13"/>
        </surfnet:RadialButton>
        <surfnet:RadialButton x:Name="Button3B" Thickness="0" Click="RevealImage2">
            <Image Source="/Images/Jellyfish.jpg" Margin="0,-13,0,13"/>
        </surfnet:RadialButton>
        <surfnet:RadialButton x:Name="Button3C" Thickness="0" Click="RevealImage3">
            <Image Source="/Images/Koala.jpg" Margin="0,-13,0,13"/>
        </surfnet:RadialButton>
        <surfnet:RadialButton x:Name="Button3D" Thickness="0" Click="RevealImage4">
            <Image Source="/Images/Lighthouse.jpg" Margin="0,-13,0,13"/>
        </surfnet:RadialButton>
    </surfnet:RadialMenu>
    <surfnet:RadialMenu PieSize="360" Orientation="0" MinRadius="20" MaxRadius="50">
            <surfnet:RadialButton x:Name="Toggle_Button" Angle="140"
                                      Background="Orange" Click="toggleThirdRow" MouseEnter="Highlight" MouseLeave="Dehighlight">
                Toggle Buttons
            </surfnet:RadialButton>
            <surfnet:RadialButton x:Name="Add_Button" Click="addToRow"
                                      Style="{StaticResource Disabled}">
                Add
            </surfnet:RadialButton>
            <surfnet:RadialButton x:Name="Remove_Button" Click="removeFromRow"
                                      Style="{StaticResource RemoveDefault}">
                Remove
            </surfnet:RadialButton>
        </surfnet:RadialMenu>  
    <surfnet:RadialMenu x:Name="centerMenu" PieSize="360" Orientation="0" MaxRadius="20">
        <surfnet:RadialButton Click="Close" Background="Blue"  Foreground="White">
            Close
        </surfnet:RadialButton>
    </surfnet:RadialMenu>        
</Grid>
